package top.dbpanda.cmsjpa.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author 20018954
 */
@Data
@ApiModel("添加用户")
public class AddUserDTO implements Serializable {

    @ApiModelProperty("用户账号")
    @NotBlank(message = "账号不能为空")
    private String account;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String passwd;

    @ApiModelProperty("昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickName;

}
